import Vue from 'vue'
import App from './App.vue'
import Antd from 'ant-design-vue';
import 'ant-design-vue/dist/antd.css';
import router from "@/router/index";
import { message } from 'ant-design-vue';
import VueSocketIO from 'vue-socket.io';
import SocketIO from 'socket.io-client'

import store from '@/components/vue-tetris/store';
import '@/components/vue-tetris/control'; 

Vue.config.productionTip = false
Vue.use(Antd);
Vue.prototype.$message=message
const socket = SocketIO('http://127.0.0.1:3008');
Vue.use(new VueSocketIO({
  debug: true,
  connection: socket,
  options:{
    autoConnect:false//关闭自动连接
  }
}));


new Vue({
  render: h => h(App),
  router,
  store,
  mode: "history"
}).$mount('#app')
